package org.insist.best.codeGenerator.core;

public class MysqlUrlBuilder implements IDataSourceUrlBuilder {

    @Override
    public String url(String host, int port, String dbName) {
        StringBuilder url = new StringBuilder("jdbc:mysql://");
        url.append(host).append(":").append(port).append("/").append(dbName)
                .append("?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai");
        return url.toString();
    }
}
